/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ExameDetalhes.java
 *
 * Created on 07/12/2011, 03:59:32
 */

package br.uff.ihc.gui;

import java.util.Date;

/**
 *
 * @author Adrielle
 */
public class ConsultaDetalhes extends javax.swing.JFrame {

    /** Creates new form ExameDetalhes */
    public ConsultaDetalhes() {
        initComponents();
        setLocationRelativeTo(null);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        dtData = new com.toedter.calendar.JDateChooser();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        cbMedico = new javax.swing.JComboBox();
        cbHora = new javax.swing.JComboBox();
        btSalvar1 = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        txCSC = new javax.swing.JTextField();
        btSalvar2 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 102, 0), 2, true));
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        jPanel1.add(dtData, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 170, 130, -1));

        jLabel4.setFont(new java.awt.Font("Papyrus", 1, 16));
        jLabel4.setText("Data:");
        jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 170, -1, 30));

        jLabel5.setFont(new java.awt.Font("Papyrus", 1, 16));
        jLabel5.setText("Hora:");
        jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 170, -1, 30));

        cbMedico.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dra. Amanda", "Dra. Bruna", "Dr. Matheus", "Dr. Pedro", "Dra. Rafaela", "Dr.Sandro", "Dr. Ronaldo" }));
        jPanel1.add(cbMedico, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 130, 350, -1));

        cbHora.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "13:30", "15:00" }));
        jPanel1.add(cbHora, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 170, 110, -1));

        btSalvar1.setFont(new java.awt.Font("DejaVu Sans", 0, 13));
        btSalvar1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/uff/ihc/gui/imagens/editar.png"))); // NOI18N
        btSalvar1.setText("Editar");
        jPanel1.add(btSalvar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 370, 110, 40));

        jLabel6.setFont(new java.awt.Font("Papyrus", 1, 16));
        jLabel6.setText("Médico:");
        jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 130, -1, 30));

        jLabel7.setFont(new java.awt.Font("Papyrus", 1, 16));
        jLabel7.setText("Cartão de Saúde do Cidadão:");
        jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 90, -1, 40));

        txCSC.setEditable(false);
        jPanel1.add(txCSC, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 100, 180, 20));

        btSalvar2.setFont(new java.awt.Font("DejaVu Sans", 0, 13));
        btSalvar2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/uff/ihc/gui/imagens/excluir.png"))); // NOI18N
        btSalvar2.setText("Excluir");
        jPanel1.add(btSalvar2, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 370, 110, 40));

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 640, 430));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ConsultaDetalhes().setVisible(true);
            }
        });
    }

    public void setValores(int a, String b, int c){
        txCSC.setText("1111");
        cbMedico.setSelectedIndex(a);
        dtData.setDate(new Date(b));
        cbHora.setSelectedIndex(c);



    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btSalvar1;
    private javax.swing.JButton btSalvar2;
    private javax.swing.JComboBox cbHora;
    private javax.swing.JComboBox cbMedico;
    private com.toedter.calendar.JDateChooser dtData;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTextField txCSC;
    // End of variables declaration//GEN-END:variables

}
